<%--
  User: Shengzhao Li
  Date: 13-8-28
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div>
    <input type="hidden" value="${checkSprintFinishDto.allowFinish}" id="checkSprintAllowFinish"/>
    <c:choose>
        <c:when test="${not checkSprintFinishDto.allowFinish}">
            <div class="alert alert-block">
                <h4>Oops! </h4>

                <p>
                    The Sprint(${checkSprintFinishDto.name}) is not yet finish all tasks now.
                    <br/>
                    The estimate total time is <strong>${checkSprintFinishDto.estimateTimesAsHour}</strong> hours,
                    but already finished time is <strong>${checkSprintFinishDto.usedTimesAsHour}</strong> hours.
                </p>
            </div>
        </c:when>
        <c:when test="${not checkSprintFinishDto.todayIsDeadline}">
            <div class="alert alert-block">
                <p>
                    The Sprint(${checkSprintFinishDto.name}) deadline is
                    <strong>${checkSprintFinishDto.deadline}</strong>, it is not today.
                    <br/>
                    Are you sure finish it now ?
                </p>
            </div>
        </c:when>
        <c:otherwise>
            <div class="alert alert-info alert-block">
                <p>
                    Are you sure finish the Sprint(${checkSprintFinishDto.name}) now ?
                </p>
            </div>
        </c:otherwise>
    </c:choose>
</div>